using System;
using System.ComponentModel;


namespace Library.WebControls {
	[ToolboxItem(false)]
	public class ClientLibraryControl : BaseAjaxControl {
		public bool InCludeAjaxLib { get; set; }

		public bool InCludeDragDrop { get; set; }

		public bool IncludeUtil { get; set; }

		public bool IncludeEffect { get; set; }

		protected override void OnLoad(EventArgs e) {
			if (InCludeDragDrop || IncludeEffect) {
				IncludeUtil = true;
			}
			base.OnLoad(e);
			if (IncludeUtil) {
				IncludeJavascriptCore(UtilLib);
			}

			if (InCludeDragDrop) {
				IncludeJavascriptCore(DragDropLib);
			}

			if (IncludeEffect) {
				IncludeJavascriptCore(EffectLib);
			}
		}
	}
}
